package com.zhao.dota.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.dota.contant.TeamConst;
import com.zhao.dota.model.LeagueMatch;
import com.zhao.dota.model.LeagueMatchUser;
import com.zhao.dota.vo.LeagueMatchVo;

import java.util.List;

public interface LeagueMatchService extends IService<LeagueMatch> {

    int addMatch(Integer leagueId, boolean captainMode, List<LeagueMatchUser> users);

    Page<LeagueMatchVo> page(Integer leagueId, Page<LeagueMatch> page);

    void setWinner(Integer leagueId, Integer id, TeamConst winner);
}
